package com.example.puissance4;

import com.example.puissance4.R;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;



public class MainActivity extends Activity {

	private LinearLayout lacolonne1;
	private LinearLayout lacolonne2;
	private LinearLayout lacolonne3;
	private LinearLayout lacolonne4;
	private LinearLayout lacolonne5;
	private LinearLayout lacolonne6;
	private LinearLayout lacolonne7;
	
	private ImageView image1;
	private ImageView image2;
	private ImageView image3;
	private ImageView image4;
	private ImageView image5;
	private ImageView image6;
	
	private ImageView image7;
	private ImageView image8;
	private ImageView image9;
	private ImageView image10;
	private ImageView image11;
	private ImageView image12;
	
	private ImageView image13;
	private ImageView image14;
	private ImageView image15;
	private ImageView image16;
	private ImageView image17;
	private ImageView image18;
	
	private ImageView image19;
	private ImageView image20;
	private ImageView image21;
	private ImageView image22;
	private ImageView image23;
	private ImageView image24;
	
	private ImageView image25;
	private ImageView image26;
	private ImageView image27;
	private ImageView image28;
	private ImageView image29;
	private ImageView image30;
	
	private ImageView image31;
	private ImageView image32;
	private ImageView image33;
	private ImageView image34;
	private ImageView image35;
	private ImageView image36;
	
	private ImageView image37;
	private ImageView image38;
	private ImageView image39;
	private ImageView image40;
	private ImageView image41;
	private ImageView image42;
	

	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		lacolonne1 = (LinearLayout)findViewById(R.id.colonne1);
		lacolonne1.setOnClickListener(unecolonne1);
		
		lacolonne2 = (LinearLayout)findViewById(R.id.colonne2);
		lacolonne2.setOnClickListener(unecolonne2);
		
		lacolonne3 = (LinearLayout)findViewById(R.id.colonne3);
		lacolonne3.setOnClickListener(unecolonne3);
		
		lacolonne4 = (LinearLayout)findViewById(R.id.colonne4);
		lacolonne4.setOnClickListener(unecolonne4);
		
		lacolonne5 = (LinearLayout)findViewById(R.id.colonne5);
		lacolonne5.setOnClickListener(unecolonne5);
		
		lacolonne6 = (LinearLayout)findViewById(R.id.colonne6);
		lacolonne6.setOnClickListener(unecolonne6);
		
		lacolonne7 = (LinearLayout)findViewById(R.id.colonne7);
		lacolonne7.setOnClickListener(unecolonne7);
		
		image1 = (ImageView)findViewById(R.id.imageView1);
		image2 = (ImageView)findViewById(R.id.imageView2);
		image3 = (ImageView)findViewById(R.id.imageView3);
		image4 = (ImageView)findViewById(R.id.imageView4);
		image5 = (ImageView)findViewById(R.id.imageView5);
		image6 = (ImageView)findViewById(R.id.imageView6);
		
		image7 = (ImageView)findViewById(R.id.imageView7);
		image8 = (ImageView)findViewById(R.id.imageView8);
		image9 = (ImageView)findViewById(R.id.imageView9);
		image10 = (ImageView)findViewById(R.id.imageView10);
		image11 = (ImageView)findViewById(R.id.imageView11);
		image12 = (ImageView)findViewById(R.id.imageView12);
		
		image13 = (ImageView)findViewById(R.id.imageView13);
		image14 = (ImageView)findViewById(R.id.imageView14);
		image15 = (ImageView)findViewById(R.id.imageView15);
		image16 = (ImageView)findViewById(R.id.imageView16);
		image17 = (ImageView)findViewById(R.id.imageView17);
		image18 = (ImageView)findViewById(R.id.imageView18);
		
		image19 = (ImageView)findViewById(R.id.imageView19);
		image20 = (ImageView)findViewById(R.id.imageView20);
		image21 = (ImageView)findViewById(R.id.imageView21);
		image22 = (ImageView)findViewById(R.id.imageView22);
		image23 = (ImageView)findViewById(R.id.imageView23);
		image24 = (ImageView)findViewById(R.id.imageView24);
		
		image25 = (ImageView)findViewById(R.id.imageView25);
		image26 = (ImageView)findViewById(R.id.imageView26);
		image27 = (ImageView)findViewById(R.id.imageView27);
		image28 = (ImageView)findViewById(R.id.imageView28);
		image29 = (ImageView)findViewById(R.id.imageView29);
		image30 = (ImageView)findViewById(R.id.imageView30);
		
		image31 = (ImageView)findViewById(R.id.imageView31);
		image32 = (ImageView)findViewById(R.id.imageView32);
		image33 = (ImageView)findViewById(R.id.imageView33);
		image34 = (ImageView)findViewById(R.id.imageView34);
		image35 = (ImageView)findViewById(R.id.imageView35);
		image36 = (ImageView)findViewById(R.id.imageView36);
		
		image37 = (ImageView)findViewById(R.id.imageView37);
		image38 = (ImageView)findViewById(R.id.imageView38);
		image39 = (ImageView)findViewById(R.id.imageView39);
		image40 = (ImageView)findViewById(R.id.imageView40);
		image41 = (ImageView)findViewById(R.id.imageView41);
		image42 = (ImageView)findViewById(R.id.imageView42);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
	
	private OnClickListener unecolonne1 = new OnClickListener() {

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
		
		}
		
	};
	
	private OnClickListener unecolonne2 = new OnClickListener() {

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			
		}
		
	};
	
	private OnClickListener unecolonne3 = new OnClickListener() {

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			
		}
		
	};
	
	private OnClickListener unecolonne4 = new OnClickListener() {

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			
		}
		
	};
	
	private OnClickListener unecolonne5 = new OnClickListener() {

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			
		}
		
	};
	
	private OnClickListener unecolonne6 = new OnClickListener() {

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			
		}
		
	};
	
	private OnClickListener unecolonne7 = new OnClickListener() {

		@Override
		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			
		}
		
	};

}
